<template>
  <svg
    class="yindu-icon"
    width="40px"
    height="40px"
    viewBox="0 0 40 40"
    version="1.1"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"
  >
    <g
      id="页面-1"
      stroke="none"
      stroke-width="1"
      fill="none"
      fill-rule="evenodd"
    >
      <g id="切图" transform="translate(-1531.000000, -99.000000)">
        <g id="编组-2" transform="translate(1531.000000, 99.000000)">
          <rect id="矩形" x="0" y="0" width="40" height="40"></rect>
          <g id="编组" transform="translate(0.000000, 2.500000)" fill="#323232">
            <polygon
              id="Fill-1"
              points="0 2.56748826 40 2.56748826 40 0 0 0"
            ></polygon>
            <polygon
              id="Fill-2"
              points="0 18.7837441 40 18.7837441 40 16.2162559 0 16.2162559"
            ></polygon>
            <polygon
              id="Fill-3"
              points="0 35 40 35 40 32.4325117 0 32.4325117"
            ></polygon>
          </g>
        </g>
      </g>
    </g>
  </svg>
</template>

<script setup lang="ts">
type Props = {
  fill?: string;
};

const props = withDefaults(defineProps<Props>(), {
  fill: "#323232",
});

const fillColor = computed(() => {
  return props.fill;
});
</script>
<style scoped lang="less">
.yindu-icon {
  & path,
  & polygon {
    fill: v-bind(fillColor);
  }
}
</style>
